package com.db.cm.app.controller;


import com.db.cm.app.mapper.CategoryMapper;
import com.db.cm.app.model.CategoryDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author YOURSLIHUA
 * @since 2023-11-24
 */
@RestController
@RequestMapping("/categoryDO")
public class CategoryController {

    @Autowired
    private CategoryMapper categoryMapper;
    @PostMapping("/view")
    public List<CategoryDO> selectAll() {
        return categoryMapper.selectCategoryView();
    }

}

